package com.exception.test2;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-09-19
 * Time: 21:49
 */
public class Test {
    //这是一个main方法，是程序的入口：
    public static void main(String[] args) {
        //创建一个Student的对象：
        /*Student s = new Student();
        s.setName("菲菲");
        s.setAge(19);
        try {
            s.setSex("asdfasdfasdf");
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println(s);*/
        Student s2 = new Student("娜娜",21,"asdfasdfasdf");
        System.out.println(s2);
    }
}
